Why am I getting an AttributeError with 'key()' in my Python dictionary code

join shbcf.ru